﻿/**********************  此代码是由代码生成器生成，生成时间： 2012/12/4 21:28:59  ************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Data;

namespace CRM.Entity
{
    [DataContract]
    public partial class UserInfo
    {
        public UserInfo()
        {

        }

        public UserInfo(DataRow row)
        {
        
            if (row["UserId"] != null && row["UserId"].ToString() != "")
            {
                this.UserId =Convert.ToInt64(row["UserId"]);
            } 
            if (row["UserName"] != null && row["UserName"].ToString() != "")
            {
                this.UserName =Convert.ToString(row["UserName"]);
            } 
            if (row["Password"] != null && row["Password"].ToString() != "")
            {
                this.Password =Convert.ToString(row["Password"]);
            } 
            if (row["UserType"] != null && row["UserType"].ToString() != "")
            {
                this.UserType =Convert.ToInt32(row["UserType"]);
            } 
            if (row["CreateTime"] != null && row["CreateTime"].ToString() != "")
            {
                this.CreateTime =Convert.ToDateTime(row["CreateTime"]);
            } 
            if (row["LastLoginTime"] != null && row["LastLoginTime"].ToString() != "")
            {
                this.LastLoginTime =Convert.ToDateTime(row["LastLoginTime"]);
            } 
            if (row["Disable"] != null && row["Disable"].ToString() != "")
            {
                this.Disable =Convert.ToBoolean(row["Disable"]);
            } 
        }

       /**********************************  UserId ************************************************/
        [DataMember]
        public Int64 UserId
        {
          get;
          set;
        }
       /**********************************  UserName ************************************************/
        [DataMember]
        public String UserName
        {
          get;
          set;
        }
       /**********************************  Password ************************************************/
        [DataMember]
        public String Password
        {
          get;
          set;
        }
       /**********************************  UserType ************************************************/
        [DataMember]
        public Int32 UserType
        {
          get;
          set;
        }
       /**********************************  CreateTime ************************************************/
        [DataMember]
        public DateTime CreateTime
        {
          get;
          set;
        }
       /**********************************  LastLoginTime ************************************************/
        [DataMember]
        public DateTime LastLoginTime
        {
          get;
          set;
        }
       /**********************************  Disable ************************************************/
        [DataMember]
        public Boolean Disable
        {
          get;
          set;
        }
    }
}